# New ports collection makefile for:	cs-user
# Date created:		2006-08-19
# Whom:			Li-Wen Hsu <lwhsu@cs.nctu.edu.tw>
#
# $Id: Makefile 218 2006-10-31 06:11:57Z gslin $
#

PORTNAME=	user
PORTVERSION=	1.0
PORTREVISION=	4
CATEGORIES=	cs
MASTER_SITES=	# none
DISTFILES=	# none

MAINTAINER=	ta@cs.nctu.edu.tw
COMMENT=	Install user dependencies and create links

RUN_DEPENDS=	${SITE_PERL}/${PERL_ARCH}/DBD/mysql.pm:${PORTSDIR}/databases/p5-DBD-mysql \
		${SITE_PERL}/${PERL_ARCH}/DBI.pm:${PORTSDIR}/databases/p5-DBI

NO_BUILD=	yes
USE_PERL5_RUN=	yes

PLIST_FILES=	bin/user bin/userdb bin/whosebirthday bin/cwho
USERDB_DIR=	/net/userdb

do-install:
	${LN} -fs ${USERDB_DIR}/user ${TARGETDIR}/bin/user
	${LN} -fs ${USERDB_DIR}/userdb.bsd ${TARGETDIR}/bin/userdb
	${LN} -fs ${USERDB_DIR}/whosebirthday ${TARGETDIR}/bin/whosebirthday
	${LN} -fs ${USERDB_DIR}/cwho ${TARGETDIR}/bin/cwho

.include <bsd.port.mk>
